﻿namespace Keede.RabbitMQ
{
    public class Authorization
    {

        /// <summary>
        /// Authorization
        /// </summary>
        /// <param name="userName">user name</param>
        /// <param name="password">password</param>
        /// <param name="vhost">vhost</param>
        /// <param name="hostName">host name</param>
        /// <param name="port">port </param>
        public Authorization(string userName, string password, string vhost, string hostName, int port = 5672)
        {
            UserName = userName;
            Password = password;
            VHost = vhost;
            Host = hostName;
            Port = port;
        }

        /// <summary>
        /// user name
        /// </summary>
        public string UserName { get; }

        /// <summary>
        /// password
        /// </summary>
        public string Password { get; }

        /// <summary>
        /// vhost
        /// </summary>
        public string VHost { get; }

        /// <summary>
        /// host (ip address)
        /// </summary>
        public string Host { get; }

        /// <summary>
        /// port
        /// </summary>
        public int Port { get; }
    }
}
